﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Areas.Manage.Models.EditModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	修改密码
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset class="fieldset">
        <legend></legend>
        <% Html.BeginForm(); %>
        <%=Html.ActionLink("列表","Index") %>
        <ul class="editlist">
            <li>
                <label class="label">状态：</label>
                <span class="spans">
                    <%=Html.RadioButtonFor(p => p.State, Code.Models.AdminState.Locked, new {id="State_Locked" })%>
                    <label for="State_Locked">锁定</label>
                    <%=Html.RadioButtonFor(p => p.State, Code.Models.AdminState.Normal, new { id = "State_Normal" })%>
                    <label for="State_Normal">正常</label>
                    <%=Html.ValidationMessageFor(p=>p.State) %>
                </span>
            </li>
            <li>
                <label class="label" for="RoleID">角色：</label>
                <span class="spans">
                    <%=Html.DropDownListFor(p=>p.RoleID,Model.RolesList) %>
                    <%=Html.ValidationMessageFor(p=>p.RoleID) %>
                </span>
            </li>
            <li>
                <label class="label" for="LoginName">登&nbsp;录&nbsp;名：</label>
                <span class="spans">
                    <%=Model.LoginName %>
                </span>
            </li>
            <li>
                <label class="label" for="Password">新密码：</label>
                <span class="spans">
                    <input type="password" id="Password" name="Password" />不输入则不更改
                    <%=Html.ValidationMessageFor(p=>p.Password) %>
                </span>
            </li>
            <li>
                <label class="label" for="ConfirmPwd">确认密码：</label>
                <span class="spans">
                    <input type="password" id="ConfirmPwd" name="ConfirmPwd" />
                    <%=Html.ValidationMessageFor(p=>p.ConfirmPwd) %>
                </span>
            </li>
            <li>
                <label class="label" for="ConfirmPwd">验证密码：</label>
                <span class="spans">
                    <input type="password" id="CheckPwd" name="CheckPwd" />您的登录密码
                    <%=Html.ValidationMessageFor(p=>p.CheckPwd) %>
                </span>
            </li>
            <li class="btn">
                <input type="submit" value="保存" onclick="return confirm('确定提交吗？')" />
            </li>
            <% if (Request["returnUrl"] != null){ %>
            <li>
                <a href='<%=Request["returnUrl"] %>'class="a_blue">返回</a>
            </li>
            <%} %>
        </ul>
        <%=Html.HiddenFor(p=>p.LoginName) %>
        <% Html.EndForm(); %>
    </fieldset>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StyleAndScript" runat="server">
</asp:Content>
